package com.example.aop;

import com.example.aop.config.AopConfg;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Client {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AopConfg.class);
        SimpleController simpleController = (SimpleController) annotationConfigApplicationContext.getBean("simpleController");
        simpleController.test();
    }

}
